package com.htgd.gardenexpo.dao;

import com.htgd.gardenexpo.entity.GeConSocialTopics;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.htgd.gardenexpo.page.SocialTopicsQuery;
import com.htgd.gardenexpo.vo.GeConSocialTopicsVO;
import com.htgd.gardenexpo.vo.SocialTopicReplyNumsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 社交话题 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-10-08
 */
public interface GeConSocialTopicsMapper extends BaseMapper<GeConSocialTopics> {

    List<GeConSocialTopicsVO> pageList(SocialTopicsQuery socialTopicsQuery);

   long getCategoryTopicNums(@Param("type") String type);

    List<SocialTopicReplyNumsVO> getTopicReplyNums(@Param("date")String date, @Param("pageNum")Integer pageNum,@Param("pageSize") Integer pageSize);
}
